//
//  MyMianInforTableViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/11.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "MyMianInforTableViewCell.h"

@implementation MyMianInforTableViewCell{
    GLGWLabel * phoneLabel;
    GLGWLabel * companyLabel;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        GLGWView * bankgroundView = [[GLGWView alloc] initWithInSuperView:self.contentView];
        bankgroundView.backgroundColor = [UIColor whiteColor];
        [bankgroundView setViewShadowWidth:3.0 theCornerRadius:3.0];
        [bankgroundView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(self.contentView.mas_top).offset(kHeightProportion_In_iPhoneTriploid(15));
            make.right.equalTo(self.contentView.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.bottom.equalTo(self.contentView.mas_bottom).offset(-kHeightProportion_In_iPhoneTriploid(15));
        }];
        //
        phoneLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(15), kHeightProportion_In_iPhoneTriploid(20), KScreenWidth - kWidthProportion_In_iPhoneTriploid(60), kHeightProportion_In_iPhoneTriploid(20)) theFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:bankgroundView];
        phoneLabel.attributedText = [GLGWLabel bllChangeStr:@"我的联系电话  188 6460 6096" changewithStr:@"188 6460 6096" changeColoer:kColor_Rule_Black withFont:SYSTEMFONT(14)];
        //
        companyLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(phoneLabel.x, kY_With_View(phoneLabel, 10), phoneLabel.width, phoneLabel.height) theFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:bankgroundView];
        companyLabel.attributedText = [GLGWLabel bllChangeStr:@"我的企业名称  北京五矿有限公司" changewithStr:@"北京五矿有限公司" changeColoer:kColor_Rule_Black withFont:SYSTEMFONT(14)];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
